<?php
$library = 'C:\php_library\ZendFramework-1.11.11-minimal\library';
set_include_path(get_include_path() . PATH_SEPARATOR .$library);
require_once('Zend/Loader/Autoloader.php');
try{
  $loader = Zend_Loader_Autoloader::getInstance();
  /* To test the code
  if ($loader){
	  echo 'Loader OK <br/>';
  }else{
	  echo 'We have a problem';
  }
  */
  $write = array('host'=>'localhost',
				 'username'=>'findItWrite',
				 'password'=>'RuzeTmRtvz2uf49h',
				 'dbname'=>'findit');
  $read = array('host'=>'localhost',
				 'username'=>'findItRead',
				 'password'=>'bqx7Ym6j4YnKS3UY',
				 'dbname'=>'findit');	
  $dbWrite = new Zend_Db_Adapter_Pdo_Mysql($write);
  $dbRead = new Zend_Db_Adapter_Pdo_Mysql($read);	
  /* To test the code
  if ($dbWrite->getConnection()){
	  echo 'Write OK <br/>';
  }
  if ($dbRead->getConnection()){
	  echo 'Read OK <br/>';
  }
  */
} catch (Exception $e){
	echo $e->getMessage();
}